package com.today36524.stuAch;

import java.util.ArrayList;
import java.util.List;

import com.today36524.stuAch.bean.Classes;
import com.today36524.stuAch.bean.Grade;
import com.today36524.stuAch.bean.Student;
import com.today36524.stuAch.util.ComputeUtil;

public class Main {

    public static void main(String[] args) {
        List<Student> l = new ArrayList<Student>();
        
        Student s1 = new Student();
        s1.setName("小文艺");
        s1.setSex(1);
        s1.setYuwen(99);
        s1.setShuxue(61);
        s1.setYingyu(70);
        l.add(s1);
        
        s1 = new Student();
        s1.setName("科学家");
        s1.setSex(1);
        s1.setYuwen(79);
        s1.setShuxue(94);
        s1.setYingyu(60);
        l.add(s1);
        
        s1 = new Student();
        s1.setName("国际范");
        s1.setSex(2);
        s1.setYuwen(69);
        s1.setShuxue(71);
        s1.setYingyu(98);
        l.add(s1);
        
        s1 = new Student();
        s1.setName("全能型");
        s1.setSex(2);
        s1.setYuwen(89);
        s1.setShuxue(91);
        s1.setYingyu(90);
        l.add(s1);
        
        s1 = new Student();
        s1.setName("小女神");
        s1.setSex(2);
        s1.setYuwen(66);
        s1.setShuxue(78);
        s1.setYingyu(77);
        l.add(s1);
        
        s1 = new Student();
        s1.setName("学不进");
        s1.setSex(1);
        s1.setYuwen(61);
        s1.setShuxue(55);
        s1.setYingyu(53);
        l.add(s1);
        
        Classes c = new Classes();
        c.setName("初一1班");
        c.setStudents(l);
        
//        ComputeUtil.showTop5Student(null, null, c);
        ComputeUtil.showGroups(null, null, c);
        
        Grade g = new Grade();
        g.setName("初一年级");
        List<Classes> lc = new ArrayList<>();
        lc.add(c);
        g.setClasses(lc);
//        ComputeUtil.computeTop20AndChampions(null, g);
    }

}
